import request from '@/utils/request'

export function listuseDetail(query) {
  return request({
    url: '/material/useDetail/list',
    method: 'get',
    params: query
  })
}

export function createuseDetail(data) {
  return request({
    url: '/material/useDetail/create',
    method: 'post',
    data
  })
}

export function readuseDetail(data) {
  return request({
    url: '/material/useDetail/get/' + data.id,
    method: 'get'
  })
}

export function updateuseDetail(data) {
  return request({
    url: '/material/useDetail/update',
    method: 'post',
    data
  })
}

export function deleteuseDetail(data) {
  return request({
    url: '/material/useDetail/delete/' + data.id,
    method: 'delete'
  })
}
